package com.summerbird.mallchat.common.websocket.service;

import com.summerbird.mallchat.common.websocket.domain.vo.response.WSBaseResp;
import io.netty.channel.Channel;

public interface WebSocketService {
    void connect(Channel channel);

    void handleLoginReq(Channel channel);

    void remove(Channel channel);

    void scanLoinSuccess(Integer code, Long uid);

    void waitAuthorize(Integer code);

    void authorize(Channel channel, String token);

    void sendMsgToAll(WSBaseResp<?> wsBaseResp, Long skipUid);

    void sendToUid(WSBaseResp<?> wsBaseMsg, Long uid);

    void sendToAllOnline(WSBaseResp<?> wsBaseResp, Long skipUid);
}
